﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:apexControls="clr-namespace:Apex.Controls">


    <Style TargetType="{x:Type apexControls:MultiBorder}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type apexControls:MultiBorder}">
                    <DockPanel LastChildFill="true"
                               Background="{TemplateBinding Background}">
                        <Border DockPanel.Dock="Left" Width="{TemplateBinding BorderThicknessLeft}" Background="{TemplateBinding BorderBrushLeft}" />
                        <Border DockPanel.Dock="Top" Height="{TemplateBinding BorderThicknessTop}" Background ="{TemplateBinding BorderBrushTop}" />
                        <Border DockPanel.Dock="Right" Width="{TemplateBinding BorderThicknessRight}" Background ="{TemplateBinding BorderBrushRight}" />
                        <Border DockPanel.Dock="Bottom" Height="{TemplateBinding BorderThicknessBottom}" Background ="{TemplateBinding BorderBrushBottom}" />
                        <ContentPresenter Content="{TemplateBinding Content}" Margin="{TemplateBinding Padding}" />
                    </DockPanel>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>